import {createRouter, createWebHistory} from 'vue-router'

const routes = [
  {
    path: '/', // 首页
    name: 'Home',
    component: () => import('../views/Home.vue'),
    children: [
    ]
  },
  {
    path: '/about',
    name: 'About',
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
});

export default router
